package itheime.com.fileDemo;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test9 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\itheima\\a.avi");
        FileOutputStream fos = new FileOutputStream("Day10\\a.avi");

        int bys;
        while ((bys= fis.read())!=-1){
            fos.write(bys);
        }

        fis.close();
        fos.close();
    }
}
